home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19950528-19950726
/
000228_news@columbia.edu_Tue Jun 27 08:51:12 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-07-31
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA03517
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 28 Jun 1995 03:19:46 -0400
Received: by apakabar.cc.columbia.edu id AA09921
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 28 Jun 1995 03:19:43 -0400
Path: news.columbia.edu!panix!news.mathworks.com!europa.chnt.gtegsc.com!howland.reston.ans.net!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
From: jrd@cc.usu.edu (Joe Doupnik)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Testing external errorlevel in MSK 3.14 scripts?
Message-Id: <1995Jun27.145112.54791@cc.usu.edu>
Date: 27 Jun 95 14:51:12 MDT
References: <jhurwitDAquD8.1Mo@netcom.com>
Organization: Utah State University
Lines: 20
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <jhurwitDAquD8.1Mo@netcom.com>, jhurwit@netcom.com (Jeffrey Hurwit) writes:
> Is it possible to test the errorlevel of a program launched from a MSK
> 3.14 script with the "run" command, so that the script can respond to
> the outcome? I want to have a script run PKUNZIP -t to check the
> integrity of a downloaded archive, and signal the sending kermit to
> resend if it fails. I saw some mention of a \v(errorlevel) variable
> and a few IF ERRORLEVEL commands in the help file, but it was not clear
> if these refer to the exit status of externally run programs.
-----------
Alas, no. Errorlevel is a private integer kept deep within DOS
(undoc'd) and it is not visible outside of Command.com. Kermit uses
Command.com to perform the RUN command. .BAT files are handled by
Command.com, hence can see Errorlevel.
You can't even write to the DOS Environment within a BAT file
and have the results available to Kermit (even though MSK knows how to
read the Environment) because the BAT file is using only a local copy
of the Env which vanishes with Command.com #2 exits back to Kermit.
About the only thing I can suggest is to write a file somewhere and let
MSK act on file present/absent, or similar paleolithic o/s technique.
Joe D.